package com.medical.app.service.impl;

import com.medical.app.common.dto.DepartmentDto;
import com.medical.app.mapper.DepartmentAllMapper;
import com.medical.app.service.DepartmentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

/*
 * @Date : 2024/4/30 上午11:40
 * @Created by Lang
 * @ProjectName : medical-appointment-registration
 */
@Service
public class DepartmentServiceImpl implements DepartmentService {
    @Resource
    private DepartmentAllMapper departmentAllMapper;

    @Override
    public List<DepartmentDto> listByHospital(Long hospitalId) {
        return departmentAllMapper.listByHospital(hospitalId);
    }
}
